package cl.uchile.sti.authorization.dao;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 * Created with IntelliJ IDEA.
 * User: Julio Villane
 * Date: 13-12-12
 * Time: 12:49 PM
 */
//TODO eliminar esta clase
public class cambiarPorSpring {

    private static EntityManager entityManager;
    static{
        EntityManagerFactory factory = Persistence.createEntityManagerFactory("authorizationPU");
        entityManager=factory.createEntityManager();
    }
    public static EntityManager getEntityManager(){
        return entityManager;
    }
}
